package com.xiaoxx.coin.po.res;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(description = "用户交易响应数据")
@Data
public class UserTradesResponse {

    @ApiModelProperty(value = "是否是买方", required = true)
    private boolean buyer;

    @ApiModelProperty(value = "手续费", example = "-0.07819010", required = true)
    private String commission;

    @ApiModelProperty(value = "手续费计价单位", example = "USDT", required = true)
    private String commissionAsset;

    @ApiModelProperty(value = "交易ID", example = "698759", required = true)
    private long id;

    @ApiModelProperty(value = "是否是挂单方", required = true)
    private boolean maker;

    @ApiModelProperty(value = "订单编号", example = "25851813", required = true)
    private long orderId;

    @ApiModelProperty(value = "成交价", example = "7819.01", required = true)
    private String price;

    @ApiModelProperty(value = "成交量", example = "0.002", required = true)
    private String qty;

    @ApiModelProperty(value = "成交额", example = "15.63802", required = true)
    private String quoteQty;

    @ApiModelProperty(value = "实现盈亏", example = "-0.91539999", required = true)
    private String realizedPnl;

    @ApiModelProperty(value = "买卖方向", example = "SELL", required = true)
    private String side;

    @ApiModelProperty(value = "持仓方向", example = "SHORT", required = true)
    private String positionSide;

    @ApiModelProperty(value = "交易对", example = "BTCUSDT", required = true)
    private String symbol;

    @ApiModelProperty(value = "时间戳", example = "1569514978020", required = true)
    private long time;
}
